home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / lrange.n < prev    next >
Text File  |  1995-07-25  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      llllrrrraaaannnnggggeeee((((nnnn))))                    TTTTccccllll (((( ))))                    llllrrrraaaannnnggggeeee((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           lrange - Return one or more adjacent elements from a list
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           llllrrrraaaannnnggggeeee _l_i_s_t _f_i_r_s_t _l_a_s_t
  15.      _________________________________________________________________
  16.  
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           _L_i_s_t must be a valid Tcl list.  This command will  return  a
  20.           new   list   consisting  of  elements  _f_i_r_s_t  through  _l_a_s_t,
  21.           inclusive.  _L_a_s_t may be eeeennnndddd (or any abbreviation of  it)  to
  22.           refer  to  the  last  element of the list.  If _f_i_r_s_t is less
  23.           than zero, it is treated as if it were  zero.   If  _l_a_s_t  is
  24.           greater than or equal to the number of elements in the list,
  25.           then it is treated as if it were eeeennnndddd.  If _f_i_r_s_t  is  greater
  26.           than  _l_a_s_t then an empty string is returned.  Note: ``llllrrrraaaannnnggggeeee
  27.           _l_i_s_t _f_i_r_s_t _f_i_r_s_t'' does not always produce the  same  result
  28.           as  ``lllliiiinnnnddddeeeexxxx _l_i_s_t _f_i_r_s_t'' (although it often does for simple
  29.           fields that aren't enclosed in braces);  it  does,  however,
  30.           produce  exactly  the  same  results  as ``lllliiiisssstttt [[[[lllliiiinnnnddddeeeexxxx _l_i_s_t
  31.           _f_i_r_s_t]]]]''
  32.  
  33.  
  34.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  35.           element, list, range, sublist
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/17/95)
  64.  
  65.  
  66.  
  67.